﻿<?xml version="1.0" encoding="utf-8" ?>
<Feature id="SyrinxThemeFeature" name="Syrinx Theme Feature Information">
	<Dependencies>
		<Dependency type="feature">UserLoginFeature.xml</Dependency>   
		<Dependency type="feature">SecurityFeature.xml</Dependency>
		<Dependency type="feature">CryptographyFeature.xml</Dependency>
	</Dependencies>
	<BusinessRules>
		<BusinessRule name="getCompanyTemplateName" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>   
		<BusinessRule name="getCompanyThemeName"  postExtends="getCompany" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>
		
		<BusinessRule name="getCompanyThemes" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="updateCompanyTheme"  postExtends="updateCompany" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="setCompanyThemeSetting" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="setUserPrefences"  postExtends="getUserPreferences" security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>
		<BusinessRule name="getMessageTemplate"  security="disabled">
			<Option value="$SyrinxRemoteTier$">
				<RemoteRule url="$SyrinxRemoteTier$" />
				<LocalClass name="Syrinx.ThemeBizRule,ScsCore" />
			</Option>
		</BusinessRule>
		
	</BusinessRules>
	<BusinessObjects>
		<BusinessObject type="Theme" key="name">
			<Field name="name" type="String" />
		</BusinessObject>
		<BusinessObject injects="Company" >
			<Field name="appThemes" type="List(Theme)" />
		</BusinessObject>
		<BusinessObject injects="UserSettings">
			<Field name="themeName" type="String" />
		</BusinessObject>
		
		<BusinessObject injects="CompanySettings" >
			<Field name="themeName" type="String" >BlueGreen</Field>
			<Field name="canUserSelectTheme" type="Boolean" />
		</BusinessObject>
		<BusinessObject type="Message">
			<Field name="value" type="String" />
		</BusinessObject>
	</BusinessObjects>
	
	<ClassFactory id="BizProcs">
		<Class type="Syrinx.Gui.AspNet.Ajax.SyrinxMenuBizProc,ScsAspNet" name="smenu"/>
	</ClassFactory>
	
</Feature>
